class Circle {
    private double radius;

    public Circle(){
        radius = 0.0;
    }

    public Circle(double radius){
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getArea(){
        double area = 3.14 * radius * radius;
        return area;
    }

    public double getPerimeter(){
        double perimeter = 2 * 3.14 * radius;
        return perimeter;
    }

    public void show(){
        System.out.println("圆的半径：" + this.getRadius());
        System.out.println("圆的周长：" + this.getPerimeter());
        System.out.println("圆的面积：" + this.getArea());
    }
}
class Cylinder extends Circle {
    private double hight;


    public Cylinder(double radius, double hight) {
        super(radius);
        this.hight = hight;
    }

    public double getVolume(){
        double volume = getPerimeter() * hight;
        return volume;
    }

    public void showVolume() {
        System.out.println("圆柱体的底半径" + this.getRadius());
        System.out.println("圆柱体的高" + this.hight);
        System.out.println("圆柱体的体积：" + this.getVolume());
    }
}

public class test {
    public static void main(String[] args) {
        Circle circle = new Circle(1.0);
        circle.show();
        Cylinder cylinder = new Cylinder(1.0,3);
        cylinder.showVolume();
    }
}
